﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Preview.aspx.cs" Inherits="Preview" %>

<%@ Register Namespace="NS_Controls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
	<style type="text/css">
	@media print {
	.printhide { display:none }
	}
	@media screen {
	.printonly { display:none }
	}
	</style>
	<link href="../../Styles/Hipocrate.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<form id="form1" runat="server">
	<asp:ScriptManager ID="ScriptManagerForEGVPopup" runat="server" EnableScriptGlobalization="true"
		AsyncPostBackTimeout="900" />
	<asp:Label ID="lblMessages" runat="server" Text="" Visible="true" />
	<script language="javascript" type="text/javascript">
		var g_str_lblMessages = '<% =lblMessages.ClientID %>'; 
	</script>
	<script src="<% =ResolveClientUrl("~/Scripts/GeneralFunctions.js") %>" type="text/javascript"></script>
	<asp:Literal ID="output" runat="server" />
	<div align="center">
		<fieldset style="margin-left: 10px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px;">
			<legend id="areaTitle" runat="server" title="">Preview: </legend>
			<div>
				<table border="0" align="left" width="100%">
					<tr class="printhide">
						<td align="left" colspan="3">
							&nbsp;&nbsp;&nbsp;
							<input type="button" title="" value="Imprima!" onclick="window.print()" style="border-width:0" />
						</td>
					</tr>
					<tr>
						<td align="left" valign="top" style="width: 35%">
							<cc1:ExtendedGridView runat="server" ID="grPreview" UseDefaultStyle="true" EnableEdit="false"
								ShowEditLink="false" ShowInsertLink="false" AutoSave="true" AllowSorting="true"
								AllowPaging="true" PageSize="10" AutoGenerateColumns="false" DataKeyNames="ID"
								EnableFilter="false" EnablePageSize="false" EnableExport="false" Width="100%"
								Enabled="false" />
							<br /><br />
							<asp:Literal ID="extraInfo" runat="server" />
						</td>
						<td style="width: 2%">
						</td>
						<td valign="top">
							<asp:Chart ID="chartPreview" runat="server" Palette="BrightPastel" BackColor="#D3DFF0"
								Height="450px" Width="690px" BorderDashStyle="Solid" BackGradientStyle="TopBottom"
								BorderWidth="2" BorderColor="26, 59, 105" IsSoftShadows="False" ImageLocation="~/Tools/TempImages/ChartPic_#SEQ(300,3)">
								<Legends>
									<asp:Legend Name="Default" TitleFont="Microsoft Sans Serif, 8pt, style=Bold" BackColor="Transparent"
										IsEquallySpacedItems="True" Font="Trebuchet MS, 8pt, style=Bold" IsTextAutoFit="False" />
								</Legends>
								<Titles>
									<asp:Title Name="Title1" ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold"
										ShadowOffset="3" Text="Indicatori" Alignment="MiddleLeft" ForeColor="26, 59, 105" />
								</Titles>
								<BorderSkin SkinStyle="Emboss" />
								<ChartAreas>
									<asp:ChartArea Name="Area1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
										BackColor="Transparent" ShadowColor="Transparent" BackGradientStyle="TopBottom">
										<AxisY2>
											<MajorGrid Enabled="False" />
											<MajorTickMark Enabled="False" />
										</AxisY2>
										<AxisX2>
											<MajorGrid Enabled="False" />
											<MajorTickMark Enabled="False" />
										</AxisX2>
										<Area3DStyle PointGapDepth="900" Rotation="162" IsRightAngleAxes="False" WallWidth="25"
											IsClustered="False" />
										<AxisY LineColor="64, 64, 64, 64">
											<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
											<MajorGrid LineColor="64, 64, 64, 64" Enabled="False" />
											<MajorTickMark Enabled="False" />
										</AxisY>
										<AxisX LineColor="64, 64, 64, 64">
											<LabelStyle Enabled="false" />
											<MajorGrid LineColor="64, 64, 64, 64" Enabled="False" />
											<MajorTickMark Enabled="False" />
										</AxisX>
									</asp:ChartArea>
								</ChartAreas>
							</asp:Chart>
						</td>
					</tr>
				</table>
			</div>
		</fieldset>
	</div>
	</form>
</body>
<script language="javascript" type="text/javascript">
	function saveFile(fname) {
		//document.execCommand('SaveAs', null, fname)
	}
</script>
</html>
